package com.dormitory.javadormitory.service.impl;

import com.dormitory.javadormitory.entity.Bunkhouse;
import com.dormitory.javadormitory.mapper.ArticleManageMapper;
import com.dormitory.javadormitory.service.ArticleManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class ArticleManageServiceImpl implements ArticleManageService {

    @Autowired
    private ArticleManageMapper articleManageMapper;


    public ArrayList<Bunkhouse> bunkhouseAll() {
        return articleManageMapper.bunkhouseAll();
    }

    @Override
    public Bunkhouse inquireId(int id) {
        return articleManageMapper.inquireId(id);
    }

    @Override
    public void editId(Bunkhouse bunkhouse) {
        articleManageMapper.editId(bunkhouse);
    }

    @Override
    public ArrayList<Bunkhouse> bunkhouseName(String bunkhouseName) {
        return articleManageMapper.bunkhouseName(bunkhouseName);
    }

    @Override
    public void problemInput(Bunkhouse bunkhouse) {
        articleManageMapper.problemInput(bunkhouse);
    }

    @Override
    public void deleteBunkhouse1(int id) {
        articleManageMapper.deleteBunkhouse1(id);
    }


}
